package com.e1xp.deport_management_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.e1xp.deport_management_system.entity.Vendors;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author E1xP
 * @since 2021-04-09
 */
public interface VendorsMapper extends BaseMapper<Vendors> {

    @Select("SELECT id," +
            "concat(id,' ',name) as text " +
            "FROM vendors where instance_id=#{instanceId}")
    List<Map<String, String>> getSelection(long instanceId);
}
